package com.ejd.utils;

import java.util.List;




import com.ejd.service.IPaymentTypeService;
import com.ejd.web.bo.impl.PaymentType;
import com.ejd.web.constant.SpringBeanConstants;


public final class PaymentTypeUtil {
	public PaymentTypeUtil() {
	  }
	public static List<PaymentType> getPaymentTypes() {
		IPaymentTypeService paymentTypeService = (IPaymentTypeService)SpringFacesUtil.getManagedBean(SpringBeanConstants.PAYMENT_TYPE_SERVICE_BEAN_NAME);
		paymentTypeService.setEntityClass(PaymentType.class);
		paymentTypeService.setPKClass(Long.class);
		List<PaymentType> paymentTypes = paymentTypeService.getAll("serialNumber", true);
		return paymentTypes;
	}

}
